const state = () => ({
  inited: false,
})

const mutations = {
  setInited(state, inited) {
    state.inited = inited
  },
}

const actions = {
  async init({ commit, dispatch }) {
    // await Promise.all([
    // dispatch('xxx'),
    // ])
    commit('setInited', true)
  },
}

export default {
  namespaced: true,
  state: state,
  actions: actions,
  mutations: mutations,
}
